package entity;


/**
 * 描述：
 * @author：<a href="mailto:beier.zheng@yeepay.com">郑贝尔</a>
 * @since：Nov 20, 2012 6:34:01 PM
 * @version:1.0
 */
public class Card implements Comparable<Card>{
	private Integer id;
	private String name;
	@Override
	public int compareTo(Card o) {
		System.out.println("obj:"+o.getId()+" thisObj:"+this.id);
		return this.id-o.getId();
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

}
